package com.lx.pc.service.broadcast;

import java.math.BigInteger;

import com.lx.pc.domain.vo.broadcast.BroadcastVo;
import com.lx.pc.service.IService;
import com.lx.pc.utils.OmsPage;

public interface IBroadcastService extends IService<BroadcastVo, BigInteger>{

	/**
	 * 添加
	 * @param activity
	 * @return
	 */
	public Boolean saveBroadcast(BroadcastVo broadcast);
	
	/**
	 * 修改
	 * @param activity
	 * @return
	 */
	public String updateBroadcast(BroadcastVo broadcast);
	
	/**
	 * 查询总数
	 */
	public int findByBroadcastCount(BroadcastVo broadcastVo);
	
	/**
	 * 查询方法
	 * @param page
	 * @param size
	 * @return
	 */
	public OmsPage<BroadcastVo> findByBroadcast(BroadcastVo broadcastVo,Integer page,Integer size);
	
	/**
	 * 详情查看
	 * @param id
	 * @return
	 */
	public BroadcastVo findByBroadcastId(BigInteger id);
	
	/**
	 * 图片上传
	 * @param decode
	 * @param fileName
	 * @return
	 */
	public String upload(byte[] decode, String fileName);
}
